<%@ tag description="display the whole nodeTree" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ attribute name="node" type="com.cloudcompare.diff.bean.TreeNode" required="true" %>
<%@ taglib prefix="template" tagdir="/WEB-INF/tags" %>
<li>
	<c:choose> 
	  <c:when test="${node.folder}"> 
	    <span class="folder">${node.name}</span>
		<ul>
	    <c:forEach var="child" items="${node.childs}">
	     	<ul>
	        	<template:nodeTree node="${child}"/>
	       	</ul>
	    </c:forEach>
	    </ul> 
	  </c:when> 
	  <c:otherwise> 
	    <span class="file">${node.name}</span></li> 
	  </c:otherwise> 
	</c:choose> 
</li>